<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
</head>
<body>
    <ul>
        <li>同学1</li>
        <li>同学2</li>
        <li>同学3</li>
        <li>同学4</li>
        <li>同学5</li>
        <li>同学6</li>
        <li>同学7</li>
        <li>同学8</li>
        <li>同学9</li>
        <li>同学10</li>
    </ul>
</body>
<script>
    document.querySelector("ul")
        .addEventListener("click",function(e){
            var  li=e.target
            console.log(li.innerHTML);
        })
</script>
</html>